﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(PersonAndBusinessMetadata))]//使用PersonAndBusinessMetadata对PersonAndBusiness进行数据验证
    public partial class PersonAndBusiness : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        [Display(Name = "BusinessGuid")]
        public string BusinessGuidOld { get; set; }
        
        [Display(Name = "PersonGuid")]
        public string PersonGuidOld { get; set; }
        
        #endregion

    }
    public class PersonAndBusinessMetadata
    {
			[ScaffoldColumn(true)]
			[Display(Name = "PersonGuid", Order = 1)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object PersonGuid { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "BusinessGuid", Order = 2)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object BusinessGuid { get; set; }

			[ScaffoldColumn(false)]
			[Display(Name = "RowGuid", Order = 3)]
			public object RowGuid { get; set; }


    }


}

